*::after,
*::before {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #111;
}

.elasic {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.elasic::before {
  content: "";
  position: absolute;
  bottom: 62.5px;
  left: 5px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  z-index: 2;
}

.elasic::after {
  content: "";
  position: absolute;
  bottom: 62.5px;
  right: 5px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  z-index: 2;
}

.elasic svg {
  position: absolute;
  width: 400px;
  height: 150px;
  fill: none;
}

.elasic svg:nth-child(2) {
  filter: blur(25px);
}

.elasic svg path {
  width: 100%;
  stroke: #ff0092;
  stroke-width: 10;
  stroke-linecap: round;
  d: path("M 10 80 Q 190 80 390 80");
  animation: animate 2.5s linear infinite, animateColor 2.5s linear infinite;
}

@keyframes animate {
  0% {
    d: path("M 10 80 Q 190 80 390 80");
  }
  10% {
    d: path("M 10 80 Q 190 160 390 80");
  }
  20% {
    d: path("M 10 80 Q 190 20 390 80");
  }
  30% {
    d: path("M 10 80 Q 190 120 390 80");
  }
  35% {
    d: path("M 10 80 Q 190 100 390 80");
  }
  40% {
    d: path("M 10 80 Q 190 80 390 80");
  }
  50% {
    d: path("M 10 80 Q 190 100 390 80");
  }
  55% {
    d: path("M 10 80 Q 190 90 390 80");
  }
  60% {
    d: path("M 10 80 Q 190 80 390 80");
  }
}

@keyframes animateColor {
  0%,
  100% {
    stroke: #ff0092;
  }
  33.33% {
    stroke: #0f0;
  }
  66.66% {
    stroke: #ff0;
  }
}

.ball {
  position: relative;
  width: 60px;
  height: 60px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: inset 0 -15px 20px rgba(0, 0, 0, 0.5);
  animation: animateBall 2.5s linear infinite;
}

@keyframes animateBall {
  0%,
  100% {
    transform: translateY(-72.5px);
  }
  10%,
  11.5% {
    transform: translateY(-40px);
  }
  50% {
    transform: translateY(-350px);
  }
}
